package com.top.art.controller;


import com.top.art.annotation.PermissionLimit;
import com.top.art.service.IAddressService;
import com.top.art.vo.ResVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 地址表 前端控制器
 * </p>
 *
 * @author hjh
 * @since 2020-10-05
 */
@RestController
@RequestMapping("/address")
public class AddressController {

    @Autowired
    private IAddressService addressService;

    @GetMapping("/list")
    @PermissionLimit(limit = false)
    public ResVO list(){
        return new ResVO<>(addressService.list());
    }

}
